home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / rocketcar2.swf / scripts / frame_19 / PlaceObject2_448_337 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-24  |  708 b   |  37 lines

  1. onClipEvent(enterFrame){
  2.    _X = _root.fake._x;
  3.    _Y = _root.fake._y - 5;
  4.    if(_root.car.jet)
  5.    {
  6.       if(_root.fuel > 0)
  7.       {
  8.          if(Key.isDown(38))
  9.          {
  10.             _visible = true;
  11.             if(!sound)
  12.             {
  13.                if(_root.sound)
  14.                {
  15.                   _root.steam.start(0,99999);
  16.                   sound = true;
  17.                }
  18.             }
  19.          }
  20.       }
  21.    }
  22.    if(!Key.isDown(38) or _root.fuel < 0 or !_root.car.jet)
  23.    {
  24.       _visible = false;
  25.       _root.steam.stop();
  26.       sound = false;
  27.    }
  28.    if(_root.gravityType == "reverse")
  29.    {
  30.       _rotation = 180;
  31.    }
  32.    else
  33.    {
  34.       _rotation = 0;
  35.    }
  36. }
  37.